[IA64] fix PRtype_info and removed some warning
authorawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Fri, 24 Mar 2006 17:32:35 +0000 (10:32 -0700)
committerawilliam@xenbuild.aw <awilliam@xenbuild.aw>
Fri, 24 Mar 2006 17:32:35 +0000 (10:32 -0700)
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
xen/arch/ia64/xen/xenmisc.c
xen/include/asm-ia64/mm.h

index b8b731ebb67bd4e79aefde963007031b6c40f830..a2b68356d592f965fa1674a5ede6a4668da3ccd6 100644 (file)
@@ -539,9 +539,8 @@ int get_page_type(struct page_info *page, u32 type)
                     }
                     if ( ((x & PGT_type_mask) != PGT_l2_page_table) ||
                          ((type & PGT_type_mask) != PGT_l1_page_table) )
-                        MEM_LOG("Bad type (saw %" PRtype_info
-                                " != exp %" PRtype_info ") "
-                                "for mfn %lx (pfn %lx)",
+                        MEM_LOG("Bad type (saw %08x != exp %08x) "
+                                "for mfn %016lx (pfn %016lx)",
                                 x, type, page_to_mfn(page),
                                 get_gpfn_from_mfn(page_to_mfn(page)));
                     return 0;
@@ -581,8 +580,8 @@ int get_page_type(struct page_info *page, u32 type)
         /* Try to validate page type; drop the new reference on failure. */
         if ( unlikely(!alloc_page_type(page, type)) )
         {
-            MEM_LOG("Error while validating mfn %lx (pfn %lx) for type %"
-                    PRtype_info ": caf=%08x taf=%" PRtype_info,
+            MEM_LOG("Error while validating mfn %lx (pfn %lx) for type %08x"
+                    ": caf=%08x taf=%" PRtype_info,
                     page_to_mfn(page), get_gpfn_from_mfn(page_to_mfn(page)),
                     type, page->count_info, page->u.inuse.type_info);
             /* Noone else can get a reference. We hold the only ref. */
index d5f84b2565154cc28b11b7a37f764ddeebcf69bb..a0ba4fee80b1e79d30198814d46213a83d2a0b21 100644 (file)
@@ -32,7 +32,7 @@ typedef unsigned long page_flags_t;
  */
 #define PFN_ORDER(_pfn)        ((_pfn)->u.free.order)
 
-#define PRtype_info "08x"
+#define PRtype_info "016lx"
 
 struct page_info
 {
@@ -175,9 +175,10 @@ static inline int get_page(struct page_info *page,
        if (unlikely((x & PGC_count_mask) == 0) ||      /* Not allocated? */
            unlikely((nx & PGC_count_mask) == 0) ||     /* Count overflow? */
            unlikely((x >> 32) != _domain)) {           /* Wrong owner? */
-           DPRINTK("Error pfn %lx: rd=%p, od=%p, caf=%08x, taf=%08x\n",
-               page_to_mfn(page), domain, unpickle_domptr(domain),
-               x, page->u.inuse.type_info);
+
+           DPRINTK("Error pfn %lx: rd=%p, od=%p, caf=%016lx, taf=%"
+               PRtype_info "\n", page_to_mfn(page), domain,
+               unpickle_domptr(x >> 32), x, page->u.inuse.type_info);
            return 0;
        }
     }